package com.arturjaneczko.components.impl;

import java.awt.Toolkit;
import java.awt.datatransfer.ClipboardOwner;
import java.awt.datatransfer.Transferable;
import java.util.List;
import java.util.logging.Logger;

import com.arturjaneczko.components.core.IClipboard;

public class Clipboard implements IClipboard, ClipboardOwner {

	@Override
	public void clear() {
		// probably nothing to do
		// TODO
	}

	@Override
	public void clearAll() {
		// clear system clipboard
	}

	@Override
	public List<List<ClipboardObject>> copy(
			@SuppressWarnings("unchecked") List<ClipboardObject>... clipboardList) {
		java.awt.datatransfer.Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
		
		return null;
	}

	@Override
	public void paste(ClipboardObject clipboardObject) {
		// TODO Auto-generated method stub
	}

	@Override
	public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
			Transferable contents) {
		Logger.getAnonymousLogger().info("system clipboard is changed");
	}

}
